home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / mosaic / x11.h < prev   
C/C++ Source or Header  |  1995-05-03  |  3KB  |  76 lines

  1. /*
  2.  * x11.h
  3.  * kirk johnson
  4.  * october 1990
  5.  */
  6.  
  7. #ifndef _X11_H_
  8. #define _X11_H_
  9.  
  10. #define TileSize   (20)
  11. #define MainCurs   (XC_dot)
  12. #define BoardCurs  (XC_crosshair)
  13.  
  14. #define HighScoreTitle    "xtile high scores"
  15.  
  16. #define MainWindowName    "xtile"
  17. #define ScoresWindowName  "xtile scores"
  18.  
  19. #define DfltGutterWidth  (2)
  20. #define DfltBorderWidth  (1)
  21. #define DfltForeName     "white"
  22. #define DfltBackName     "black"
  23. #define DfltBrdrName     "white"
  24. #define DfltC0Name       "white"
  25. #define DfltC1Name       "#c44"
  26. #define DfltC2Name       "#4c4"
  27. #define DfltC3Name       "#44c"
  28. #define DfltFontName     "-*-times-bold-r-*-*-*-180-*-*-*-*-*-*"
  29.  
  30. static char solidbits[] =    /* solid fill */
  31. {
  32.   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  33.   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  34.   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  35.   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  36.   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  37. };
  38.  
  39. static char zerobits[] =    /* one small dot */
  40. {
  41.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  42.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  43.   0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
  44.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  45.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  46. };
  47.  
  48. static char onebits[] =        /* diagonal hashing */
  49. {
  50.   0x88, 0x88, 0x08, 0x44, 0x44, 0x04, 0x22, 0x22, 0x02, 0x11, 0x11, 0x01,
  51.   0x88, 0x88, 0x08, 0x44, 0x44, 0x04, 0x22, 0x22, 0x02, 0x11, 0x11, 0x01,
  52.   0x88, 0x88, 0x08, 0x44, 0x44, 0x04, 0x22, 0x22, 0x02, 0x11, 0x11, 0x01,
  53.   0x88, 0x88, 0x08, 0x44, 0x44, 0x04, 0x22, 0x22, 0x02, 0x11, 0x11, 0x01,
  54.   0x88, 0x88, 0x08, 0x44, 0x44, 0x04, 0x22, 0x22, 0x02, 0x11, 0x11, 0x01,
  55. };
  56.  
  57. static char twobits[] =        /* criss-cross */
  58. {
  59.   0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0xc4, 0x11, 0x07, 0x04, 0x10, 0x00,
  60.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x02, 0x8e, 0x38, 0x02,
  61.   0x80, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00,
  62.   0xc4, 0x11, 0x07, 0x04, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  63.   0x80, 0x00, 0x02, 0x8e, 0x3c, 0x02, 0x80, 0x00, 0x02, 0x00, 0x00, 0x00,
  64. };
  65.  
  66. static char threebits[] =    /* bricks */
  67. {
  68.   0x04, 0x10, 0x00, 0x04, 0x10, 0x00, 0xff, 0xff, 0x0f, 0x80, 0x00, 0x02,
  69.   0x80, 0x00, 0x02, 0x80, 0x00, 0x02, 0x80, 0x00, 0x02, 0xff, 0xff, 0x0f,
  70.   0x04, 0x10, 0x00, 0x04, 0x10, 0x00, 0x04, 0x10, 0x00, 0x04, 0x10, 0x00,
  71.   0xff, 0xff, 0x0f, 0x80, 0x00, 0x02, 0x80, 0x00, 0x02, 0x80, 0x00, 0x02,
  72.   0x80, 0x00, 0x02, 0xff, 0xff, 0x0f, 0x04, 0x10, 0x00, 0x04, 0x10, 0x00,
  73. };
  74.  
  75. #endif /* _X11_H_ */
  76.